import request from '@/utils/request'

// api地址
const api = {
  withdrawApply: 'user/withdraw_apply',
  withdrawLog: 'withdrawal.log/list',
  backList: 'user/backList',
  addBank: 'user/addBank',
  delBank: 'user/delBank',
  transferUser:'/user/get_user_id',
  transfer:'/user/transfer_accounts'
}

// 删除银行卡
export function delBank(data) {
  return request.post(api.delBank, data)
}

// 添加银行卡
export function addBank(data) {
  return request.post(api.addBank, data)
}

// 获取银行卡列表
export function getBackList() {
  return request.post(api.backList)
}

// 用户提现
export function withdrawApply(data) {
  return request.post(api.withdrawApply, data)
}

// 用户提现
export function withdrawLog(data) {
  return request.post(api.withdrawLog, data)
}

// 用户提现
export function transferUser(data) {
  return request.post(api.transferUser, data)
}


// 用户提现
export function transfer(data) {
  return request.post(api.transfer, data)
}
